package com.gill.vo;

import com.gill.exception.CommonServiceException;
import com.gill.util.ToolUtils;
import lombok.Data;

@Data
public class LoginReqVO extends BaseRequestVO {

    private String username;
    private String password;

    @Override
    public void checkParam()  throws CommonServiceException {
        // TODO 验证数据合法性
        if(ToolUtils.strIsNull(username) || ToolUtils.strIsNull(password)){
            throw new CommonServiceException(404,"username 或 password不能为空");
        }

    }

}
